const mongoose = require('mongoose')

const Schema = mongoose.Schema

mongoose.connect("mongodb://localhost/jd", { useNewUrlParser: true })

const jdSchema = new Schema({
    name: String,
    shops:{
        type: Array,
        require: true
    }
})

module.exports = mongoose.model('jdShop', jdSchema)